qui(
    function (require, exports, module) {
        WrapSys.Action = (function () {

            var editMergeForm = null;

            function initWindowEvent(){
                window.onbeforeunload = function () {
                    var warning = "确认要重新打点吗？";
                    return warning;
                }
                $(window).unbind("keydown").bind("keydown", function (e) {
                   return  WrapSys.Evt.globalEvent(e);
                });
                window.onresize = function () {
                    WrapSys.Util.browserZoomTips();
                    WrapSys.Util.LayoutInit();
                  //  WrapSys.Util.doNewsGridResize();
                };
            }

            var editMergeRun = function(){
                if(editMergeForm == null){
                    editMergeForm = new WrapSys.EditMerge($.extend(true, {
                        $FrameGrid:$('#frame_list'),
                        $AdvertGrid:$('#advert_list'),
                        $NewsGrid:$('#news_list'),
                        $NewsSubmitGrid:$('#auto_submit_list'),
                        $NewsDelGrid:$('#auto_del_list'),
                        $MaskGrid:$('#mask_list'),
                        $MaterialGrid:$('#material_list')
                    }, {}));
                    setTimeout(function () {
                        $("body footer").hide();
                        console.log("隐藏footer");
                    },2000)
                    editMergeForm.init();
                    initWindowEvent();
                }

            }
            return {
                editMergeRun:editMergeRun
            }
        })();
    }
);